const themeKey = 'theme-mode'

function setTheme(theme: string): void {
  localStorage.setItem(themeKey, theme)
}

function getTheme(): string | null {
  return localStorage.getItem(themeKey)
}

export default { setTheme, getTheme }
